package com.jackrain.nea.utility;

import com.jackrain.nea.config.Resources;

import java.util.Locale;

/**
 * @author lzm
 * @date 2017-11-16
 */
public class StringUtil {
    public static String formatWithLocal(Locale locale, String format, Object... args){
        String formatOfLocal = Resources.getMessage(format, locale);
        return String.format(formatOfLocal, args);
    }
}
